package com.woniuxy.mapper;

import com.woniuxy.entity.*;
import com.woniuxy.util.PageParam;

import java.util.List;

public interface DoctorMapper {
    List<Registered> selectRegistered(Registered registered);

    Doctor queryDoctor(Integer userId);
    //检查使用redis缓存 todo
    List<Check> queryChecks(Doctor doctor);

   Check queryCheckById(Integer id);

   //根据科室查医生
    List<Doctor> queryListByDeId(Integer docDeId);

   Patient queryPatient(Integer id);

   //查医生排班
    List<Doctor> querySchedule(Schedule schedule);

    //增加排班
    Integer addSchedule(Doctor doctor);

    //根据排班日期和医生id查排班
    Schedule queryByScDateAndDocId(Doctor doctor);

}
